package com.day05;

import java.util.Scanner;

/**
 * @Author milian
 * @Date 2021/7/21 0021 18:55
 */
public class digui {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入月份：");
        int cont = sc.nextInt();
        int sum = getRibit(cont);
        System.out.println(sum);
    }

    private static int getRibit(int cont) {
        if (cont==1&cont==2){
            return 1;
        }else {

            return getRibit(cont-1)+getRibit(cont-2);
        }

    }
}
